Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Dec 29, 2025

This commit updates the package manager descriptor for modern Yarn (Berry) to align with its current CLI options and configuration mechanisms:

  • Removes noLockfileFlag as Yarn Berry does not support a direct --no-lockfile flag for adding packages.
  • Updates ignoreScriptsFlag to use --mode=skip-build, which is the modern equivalent for skipping build scripts during installation.
  • Changes getRegistryOptions to use YARN_NPM_REGISTRY_SERVER environment variable, which is the correct way to configure the registry in Yarn Berry.

This commit updates the package manager descriptor for modern Yarn (Berry) to align with its current CLI options and configuration mechanisms:

- Removes `noLockfileFlag` as Yarn Berry does not support a direct `--no-lockfile` flag for adding packages.
- Updates `ignoreScriptsFlag` to use `--mode=skip-build`, which is the modern equivalent for skipping build scripts during installation.
- Changes `getRegistryOptions` to use `YARN_NPM_REGISTRY_SERVER` environment variable, which is the correct way to configure the registry in Yarn Berry.
@clydin clydin added the target: minor This PR is targeted for the next minor release label Dec 29, 2025
This commit updates `parseNpmLikeManifest` to correctly handle the output of `npm view` (and compatible commands) when a version range is specified. In such cases, `npm view --json` returns an array of manifests. The parser now returns the last element of the array, which corresponds to the latest version satisfying the range, preventing issues in `ng update` and other commands that rely on version checks.
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: @angular/cli target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant